/// <license>
/// This software and are provided as-is and without  warranty. 
/// This is  free  software,  as long  as you  clearly  display
/// the original author and his company for at least  1  second
/// on the attached display. If you need a commercial   license 
/// in which you do not have these restrictions, please contact
/// us via our website.
/// 
/// Author: Mario Di Vece
/// Unosquare S.A. de C.V. Copyright (c) 2013
/// url: http://www.unosquare.com
/// </license>

namespace Unosquare.Labs.Drivers.Vizic
{
    using Microsoft.SPOT;

    /// <summary>
    /// Represents the event arguments for the Drag Touch events
    /// It has a start and an end property to determine the 2 dragging points
    /// </summary>
    public class VizicDragEventArgs : EventArgs
    {

        /// <summary>
        /// Gets the ending drag point.
        /// </summary>
        /// <value>
        /// The end.
        /// </value>
        public VizicTouchResponse End { get; protected set; }
        /// <summary>
        /// Gets the starting drag point.
        /// </summary>
        /// <value>
        /// The start.
        /// </value>
        public VizicTouchResponse Start { get; protected set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="VizicDragEventArgs"/> class.
        /// </summary>
        /// <param name="current">The current.</param>
        /// <param name="last">The last.</param>
        public VizicDragEventArgs(VizicTouchResponse current, VizicTouchResponse last)
        {
            this.End = current;
            this.Start = last;
        }
    }
}
